﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace ControllerClient
{
    public class PervalueHelper
    {
        private readonly static string cash100 = "百元券";
        private readonly static string cash50 = "五十元券";
        private readonly static string cash20 = "二十元券";
        private readonly static string cash10 = "十元券";
        private readonly static string cash5 = "五元券";
        private readonly static string cash1 = "一元券";

        private static Decimal val100 = 100.00M;
        private static Decimal val50 = 50.00M;
        private static Decimal val20 = 20.00M;
        private static Decimal val10 = 10.00M;
        private static Decimal val5 = 5.00M;
        private static Decimal val1 = 1.00M;

        public static string getPervalue(int pervalueid)
        {
            switch (pervalueid)
            { 
                case 1:
                    return cash100;
                case 2:
                    return cash50;
                case 3:
                    return cash20;
                case 4:
                    return cash10;
                case 5:
                    return cash5;
                case 6:
                    return cash1;
            }
            return null;
        }
        public static Decimal getVal(int pervalueid)
        {
            switch (pervalueid)
            {
                case 1:
                    return val100;
                case 2:
                    return val50;
                case 3:
                    return val20;
                case 4:
                    return val10;
                case 5:
                    return val5;
                case 6:
                    return val1;
            }
            return 0;
        }
    }
}
